package com.evaluationSystem.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @ClassName PropertiesConfig
 * @Description TODO
 * @Author yinzhenxing
 * @Date 2022/10/28 17:56
 **/
@Data
@Component
@PropertySource(value = "classpath:system.properties", encoding = "UTF-8")
@ConfigurationProperties(prefix = "bisp")
public class PropertiesConfig {

    @Value("${spring.profiles.active}")
    private String env;
    @Value("${bisp.project.id}")
    private String projectId;
    @Value("${bisp.app.id}")
    private String appId;
    @Value("${bisp.ay.opCode}")
    private String opCode;
    @Value("${bisp.sms.template.id}")
    private String smsTemplateId;

    @Value("${bisp.sso.url}")
    private String ssoUrl;
    @Value("${bisp.log.url}")
    private String logUrl;
    @Value("${bisp.sms.url}")
    private String smsUrl;
    @Value("${bisp.stopAndOpen.url}")
    private String stopAndOpenUrl;
    @Value("${bisp.queryUserInfoAuth.url}")
    private String queryUserInfoAuthUrl;
    @Value("${bisp.queryUserValueAddedProd.url}")
    private String queryUserValueAddedProdUrl;
    @Value("${bisp.queryNumberBelongWhere.url}")
    private String queryNumberBelongWhereUrl;
    @Value("${bisp.queryNowPackageBalance.url}")
    private String queryNowPackageBalanceUrl;
    @Value("${bisp.queryNetworkCapacityOfDay.url}")
    private String queryNetworkCapacityOfDayUrl;

}
